package com.itheima.service.impl;

import com.itheima.domain.User;
import com.itheima.service.UserService;
import org.springframework.stereotype.Service;

/**
 * @author itheima
 * @TODO 2.目标类：放入到spring容器中
 */
@Service
public class UserServiceImpl implements UserService {

    @Override
    public Integer save(User user) {
        System.out.println("UserServiceImpl.save目标方法执行");
        //模拟抛出一个异常
        //int internal = 1 / 0;
        return 1;
    }
}
